package com.mark.org.domain;
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 实体类：商铺
 */
@Data
public class Shop {
    private Long id;
    @Excel(name = "店铺名字" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String name;
    @Excel(name = "联系电话" ,orderNum = "2", width = 30, isImportField = "true_st")
    private String tel;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    @Excel(name = "创建时间", orderNum = "3", width = 30, isImportField = "true_st")
    private Date registerTime = new Date();
    /*0:待审核   1：通过   -1：驳回*/
    @Excel(name = "状态" ,orderNum = "4", width = 30, isImportField = "true_st")
    private Integer state = 0;
    @Excel(name = "地址" ,orderNum = "5", width = 30, isImportField = "true_st")
    private String address;
    @Excel(name = "店铺图片" ,orderNum = "6", width = 30, isImportField = "true_st")
    private String logo;
    private Long admin_id;

    /**
     * 店铺对应的员工
     */
    private Employee admin;
}